package com.lhkj.ct.admin.system.controller;

import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import com.lhkj.ct.base.model.ro.ActionResult;
import com.lhkj.ct.meta.admin.model.server.Server;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控
 *
 *
 */
@RestController
@RequestMapping("api/system/server")
@ApiSupport(order = 12)
@Api(tags = "12.服务监控")
public class SysServerController {

//    @PreAuthorize("@ss.hasPermi('monitor:server:list')")
    @ApiOperation("服务监控")
    @GetMapping("get")
    public ActionResult<Server> getInfo() throws Exception {
        Server server = new Server();
        server.copyTo();
        return ActionResult.success(server);
    }

}
